package com.joven.shelltest.utils.functionifelse;

import java.util.function.Function;

/**
 * @Author wzj
 * @Date 2023-11-07 15:22
 **/
public class CartFunction {

    public final static Function<Cart, Double> ONE_POINT_FIVE = cart -> cart.getValue() * 1.5;

    public final static Function<Cart, Double> TWO_POINT_FIVE = cart -> cart.getValue() * 2.5;

    public final static Function<Cart, Double> DEFAULT = cart -> 0.5;
}
